package org.lanqiao.information;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ws_information")
public class Information implements Serializable {
    @TableId(value = "info_id" ,type = IdType.AUTO)
    private Integer id;
    @TableField(value = "create_time")
    private Date createtime;
    @TableField(value = "update_time")
    private Date updatetime;
    @TableField(value = "info_status")
    private Integer infostatus;
    @TableField(value = "tip_content")
    private String tipcontent;
    @TableField(value = "tip_user_id")
    private Integer tipuserid;
    @TableField(value = "reads_num")
    private Integer readsnum;
    @TableField(value = "sort1_id")
    private  Integer sort1id;
    @TableField(value = "sort2_id")
    private Integer sort2id;
   @TableField(value = "info_title")
    private String infotitle;
     @TableField(value = "info_content")
    private String infocontent;
    @TableField(value = "info_response")
    private Integer inforesponse;
    @TableField(value = "like_count")
    private Integer likecount;
    @TableField(value = "user_id")
    private Integer userid;
    @TableField(value = "collect_num")
    private Integer colllectnum;
    @TableField(value = "info_url")
    private String infourl;

    public Information(Integer id, Date createtime, Date updatetime, Integer infostatus, String tipcontent, Integer tipuserid, Integer readsnum, Integer sort1id, Integer sort2id, String infotitle, String infocontent, Integer inforesponse, Integer likecount, Integer userid, Integer colllectnum, String infourl) {
        this.id = id;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.infostatus = infostatus;
        this.tipcontent = tipcontent;
        this.tipuserid = tipuserid;
        this.readsnum = readsnum;
        this.sort1id = sort1id;
        this.sort2id = sort2id;
        this.infotitle = infotitle;
        this.infocontent = infocontent;
        this.inforesponse = inforesponse;
        this.likecount = likecount;
        this.userid = userid;
        this.colllectnum = colllectnum;
        this.infourl = infourl;
    }

    public Information(Date createtime, Integer sort1id, Integer sort2id, String infotitle, String infocontent, Integer userid, String infourl) {
        this.createtime = createtime;
        this.sort1id = sort1id;
        this.sort2id = sort2id;
        this.infotitle = infotitle;
        this.infocontent = infocontent;
        this.userid = userid;
        this.infourl = infourl;
    }

    public Information(Integer id, Date updatetime, Integer sort1id, Integer sort2id, String infotitle, String infocontent, String infourl) {
        this.id = id;
        this.updatetime = updatetime;
        this.sort1id = sort1id;
        this.sort2id = sort2id;
        this.infotitle = infotitle;
        this.infocontent = infocontent;
        this.infourl = infourl;
    }
}
